package com.insea.service.impl;

import java.util.List;

import com.insea.dao.PatientDao;
import com.insea.model.Patient;
import com.insea.model.User;
import com.insea.service.PatientManager;

public class PatientManagerImpl extends GenericManagerImpl<Patient, Long> implements PatientManager{

	PatientDao patientDao;
	
	public PatientManagerImpl(PatientDao patientDao) {
        super(patientDao);
        this.patientDao = patientDao;
    }

	public List<Patient> getPatientsByName(String query) {
		return patientDao.getPatientsByName(query);
	}
	
	public void savePatient(Patient patient){
		
		patientDao.savePatient(patient);
	}
}
